import { createRouter, createWebHistory } from 'vue-router';

const routes = [
    { path: '/', name: 'Home', component: () => import('@/views/Home.vue') },
    { path: '/market', name: 'Market', component: () => import('@/views/Market.vue') },
    { path: '/demand/:id', name: 'DemandDetail', component: () => import('@/views/DemandDetail.vue') },
    { path: '/publish', name: 'Publish', component: () => import('@/views/Publish.vue') },
    { path: '/my', name: 'My', component: () => import('@/views/My.vue') },
    { path: '/profile', name: 'Profile', component: () => import('@/views/Profile.vue') },
    { path: '/login', name: 'Login', component: () => import('@/views/Login.vue') },
];

const router = createRouter({
    history: createWebHistory(),
    routes,
});

export default router; 